package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * @author fmx
 * &#064;create  2023-12-01
 * &#064;description  直播点赞表
 */
@Data
@TableName(value = "yx_live_like")
@ApiModel(value = "直播点赞表", description = "yx_live_like")
public class YxLiveLikeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "like_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "点赞id")
    private Long likeId;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(value = "live_id")
    @ApiModelProperty(value = "直播id")
    private String liveId;

    @TableField(value = "like_time")
    @ApiModelProperty(value = "点赞时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date likeTime;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}